package com.sudo.dao.admin.model.bo;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author 为道日损 2020-06-23 16:50
 * webSite：https://www.sudo.ren
 */
public class SysDictBO {
    @NotBlank(message = "字典名称不能为空")
    private String dictName;

    @NotBlank(message = "字典代码不能为空")
    @Pattern(regexp="[0-9A-Za-z_]{3,30}",message="按钮代码必须是3~30位数字、字母或下划线")
    private String dictCode;

    private String pCode;

    @Length(max = 255,message = "备注最大长度不超过255位")
    private String note;

    public String getDictName() {
        return dictName;
    }

    public void setDictName(String dictName) {
        this.dictName = dictName;
    }

    public String getDictCode() {
        return dictCode;
    }

    public void setDictCode(String dictCode) {
        this.dictCode = dictCode;
    }

    public String getpCode() {
        return pCode;
    }

    public void setpCode(String pCode) {
        this.pCode = pCode;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}
